package com.example.supermarket.mapper;

import com.example.supermarket.pojo.Item;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ItemMapper {
    @Select("select * from item where item_id=#{itemId}")
    Item getItemByItemId(Integer itemId);

    @Select("select item_id from item where business_id=#{businessId}")
    List<Integer> getItemByBusinessId(Integer businessId);
}
